package com.whfp.afs330h_sdk.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


/**
 * 用于接收系统每分钟发出的Intent.ACTION_TIME_TICK广播
 */
public class TimeTickReceiver extends BroadcastReceiver {
    private String TAG = "TimeTickReceiver";
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {//开机完成的广播
            Log.i(TAG,"监听到开机完成的广播");
        } else if (intent.getAction().equals(Intent.ACTION_TIME_TICK)) {
            Log.i(TAG,"监听到TIME_TICK");
        }
    }
}
